Skip to content

Conversation

michael-coleman
Copy link

This commit adds the ability to show the current status of tmux-continuum and whether or not its enabled.
This does not change the default behaviour, it will only display the status if the user adds this to their .tmux.conf

set  -g @continuum-show-status-option 'on'

The screenshots below show it in my customised tmux status line, but I think I have set it up so that it should work for most status lines.

If tmux-continuum is off i.e. continuum-save-interval is set to 0 you will get something like this:

continuum-status-off

If continuum is on it displays the current save interval in green.

tmux-continuum-status-on

@bruno-
Copy link
Member

bruno- commented Nov 29, 2015

Hey there,
thank you for your work on this. This is a nice idea, but unfortunately the code cannot be accepted for several reasons:

  • it is "on" by default (at least it was when I pulled this locally)
  • the position where the status appears is fixed, no way to change this or add it to e.g. status-left
  • hardcoding colors or having colors "on" by default is a big no-no. Many people are running different color schemes or just want this colorless

Can you please look into #15 and see if that will work for you?

@bruno- bruno- closed this Nov 29, 2015
@michael-coleman
Copy link
Author

Hey,
yes, that all makes sense, I didn't intend it to be on by default. After your comments I checked and it turned out I had a bug in the if statement that checks if the option is enabled - where the if always came back as true - but I definitely should have checked before I submitted - thats pretty embarrasing!
I had the same ideas regarding the colours and position, I just couldn't think of any better alternatives at the time.
I will test your changes and let you know how it goes!

@michael-coleman michael-coleman deleted the pull branch December 16, 2015 00:46
@agnjunio
Copy link

agnjunio commented Jul 6, 2017

Can we have a version of this with the remaining time to the next autosave? Seems a bit useful to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants